using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class HANG_HOA
	{
	private int maHang;
	private string tenHang;
	private int soLuong;
	private float donGia;
	private string dVT;
	private string chungLoai;
	private int maNVQL;
	private int maNVPP;
	private int maLoaiHang;
	private object hinhAnh;
	private float giaBan;
	private int dinhMucTonKho;
	public HANG_HOA()
	{}
	public HANG_HOA(int maHang,string tenHang,int soLuong,float donGia,string dVT,string chungLoai,int maNVQL,int maNVPP,int maLoaiHang,object hinhAnh,float giaBan,int dinhMucTonKho)
	{
	this.maHang = maHang;
	this.tenHang = tenHang;
	this.soLuong = soLuong;
	this.donGia = donGia;
	this.dVT = dVT;
	this.chungLoai = chungLoai;
	this.maNVQL = maNVQL;
	this.maNVPP = maNVPP;
	this.maLoaiHang = maLoaiHang;
	this.hinhAnh = hinhAnh;
	this.giaBan = giaBan;
	this.dinhMucTonKho = dinhMucTonKho;
	}
	public int MaHang{
	get { return this.maHang;}
	set { if(value==null) 
		throw new Exception("maHang not allow nullvalue.");
		this.maHang=value;
	}	}
	public string TenHang{
	get { return this.tenHang;}
	set {this.tenHang=value;}
	}
	public int SoLuong{
	get { return this.soLuong;}
	set {this.soLuong=value;}
	}
	public float DonGia{
	get { return this.donGia;}
	set {this.donGia=value;}
	}
	public string DVT{
	get { return this.dVT;}
	set {this.dVT=value;}
	}
	public string ChungLoai{
	get { return this.chungLoai;}
	set {this.chungLoai=value;}
	}
	public int MaNVQL{
	get { return this.maNVQL;}
	set {this.maNVQL=value;}
	}
	public int MaNVPP{
	get { return this.maNVPP;}
	set {this.maNVPP=value;}
	}
	public int MaLoaiHang{
	get { return this.maLoaiHang;}
	set { if(value==null) 
		throw new Exception("maLoaiHang not allow nullvalue.");
		this.maLoaiHang=value;
	}	}
	public object HinhAnh{
	get { return this.hinhAnh;}
	set {this.hinhAnh=value;}
	}
	public float GiaBan{
	get { return this.giaBan;}
	set {this.giaBan=value;}
	}
	public int DinhMucTonKho{
	get { return this.dinhMucTonKho;}
	set {this.dinhMucTonKho=value;}
	}
	public override string ToString(){
	return this.maHang+"; "+this.tenHang+"; "+this.soLuong+"; "+this.donGia+"; "+this.dVT+"; "+this.chungLoai+"; "+this.maNVQL+"; "+this.maNVPP+"; "+this.maLoaiHang+"; "+this.hinhAnh+"; "+this.giaBan+"; "+this.dinhMucTonKho+"; ";
	}
	public override bool Equals(Object obj)
	{
	HANG_HOA me=(HANG_HOA)obj;
	bool ret=this.MaHang.Equals(me.MaHang);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.MaHang.GetHashCode();
	}

	}
} 